package com.mxpio.erp.equipment.service.impl;

import com.mxpio.erp.common.equipment.entity.EquipmentCheckPlanDetailParam;
import com.mxpio.erp.common.equipment.service.EquipmentCheckPlanDetailParamService;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.jpa.query.Operator;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 点检计划明细选项
 * @Author: MxpIO
 * @Date:   2021-09-17
 * @Version: V1.0
 */
@Service
public class EquipmentCheckPlanDetailParamServiceImpl extends BaseServiceImpl<EquipmentCheckPlanDetailParam> implements EquipmentCheckPlanDetailParamService {

    @Override
    public List<EquipmentCheckPlanDetailParam> selectByMainId(String mainId) {
        Criteria c = Criteria.create().addCriterion("detailId", Operator.EQ, mainId);
        return list(EquipmentCheckPlanDetailParam.class,c);
    }

}
